//
//  BRTitleTableViewCell.m
//  BrezzeSaaS
//
//  Created by IOS on 2021/12/23.
//  Copyright © 2021 Brezze GWG. All rights reserved.
//

#import "BRTitleTableViewCell.h"

@implementation BRTitleTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    self.contentView.backgroundColor = UIColor.clearColor;
    self.backgroundColor = UIColor.clearColor;
    
    self.lineView.backgroundColor = kColorBGF0;
    self.contView.backgroundColor = kColorBGF5;
}

- (void)setHasText:(BOOL)hasText {
    _hasText = hasText;
    self.textL.hidden = !hasText;
}

- (void)setHasRImg:(BOOL)hasRImg {
    _hasRImg = hasRImg;
    
    self.rightImg.hidden = !hasRImg;
    CGFloat r = hasRImg ? 36 : 20;
    self.textR.constant = r;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
